/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.matrimonybeans;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.ejb.Stateless;

/**
 *
 * @author 4410s
 */
@Stateless
public class Select_ServicesDetail implements Select_ServicesDetailLocal {
Connection conn;
ResultSet rs=null;
    @Override
    public ResultSet Select_DetailServices(int id) {
    try {
        ConnectDB conDB = new ConnectDB();
           conn = conDB.getConnection();
           String strSql = "SELECT * FROM ServicesDetails where id=? ";
           
           PreparedStatement pstmt = conn.prepareStatement(strSql);
           pstmt.setInt(1,id);
            rs = pstmt.executeQuery();
        
    } catch (SQLException ex) {
        Logger.getLogger(Select_ServicesDetail.class.getName()).log(Level.SEVERE, null, ex);
    }
    return rs;
    }

    // Add business logic below. (Right-click in editor and choose
    // "Insert Code > Add Business Method")

}
